package com.gitee.fanx.notes.mapper;

import com.gitee.fanx.notes.entity.Notes;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fanx
 */
@Mapper
@Repository
public interface NotesMapper {

	/**
	 * 新增
	 * @param notes
	 * @return
	 */
	int insert(Notes notes);

	/**
	 * 获取所有
	 * @return
	 */
	List<Notes> getAll();

	/**
	 * 按ID删除
	 * @param id
	 * @return
	 */
	int deleteById(@Param("id") Long id);

}
